package cn.lili.modules.order.order.entity.dos;

import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 积分记录表
 * </p>
 *
 * @author zhushiqing
 * @since 2023-12-21
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("li_ranking_score_details")
@ApiModel(value="RankingScoreDetails对象", description="积分记录表")
public class RankingScoreDetails extends BaseStandardEntity implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("购买人分销员")
    private String parentUserId;

    @ApiModelProperty("分销人昵称")
    private String parentNickName;

    @ApiModelProperty(value = "购买人id")
    private String buyerUserId;

    @ApiModelProperty(value = "当前活动id")
    private String currentActivityId;

    @ApiModelProperty(value = "skuId")
    private String productId;

    @ApiModelProperty(value = "sku名称")
    private String productName;

    @ApiModelProperty(value = "积分/佣金")
    private BigDecimal score;

    @ApiModelProperty(value = "订单状态: 1,待结算 2,已结算 3,已退单")
    private Integer orderStatus;

    @ApiModelProperty(value = "子订单号")
    private String orderSn;

}
